package com.wobaby.vo;


public class BabyVO extends BaseVO {

	
	
	public BabyVO()
	{
		
	}
	
	public BabyVO(Integer BabyID)
	{
		this.BabyID = BabyID;
	}

	public BabyVO(Integer BabyID,String name,Integer sex,String Birth)
	{
		this.BabyID = BabyID;
		this.name = name;
		this.sex = sex;
		this.Birth = Birth;
	}
	
	public BabyVO(String name,Integer sex,String Birth)
	{
		
		this.name = name;
		this.sex = sex;
		this.Birth = Birth;
	}
	
	public Integer getBabyID() {
		return BabyID;
	}
	public void setBabyID(Integer babyID) {
		BabyID = babyID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getBirth() {
		return Birth;
	}
	public void setBirth(String birth) {
		Birth = birth;
	}
	
	
	
	
	
	
	

    public String toString()
    {
        StringBuffer str = new StringBuffer("{");
      str.append("BabyID=" + getBabyID() + " " + "Name=" + getName() + " " + "Sex=" + getSex() + " " + "Birth=" + getBirth() + "");
        str.append('}');
        return str.toString();
    }

    public boolean equals(Object pOther)
    {
        if(pOther instanceof BabyVO)
        {
        	BabyVO lTest = (BabyVO)pOther;
            boolean lEquals = true;
            if(BabyID == null)
                lEquals = lEquals && lTest.BabyID == null;
            else
                lEquals = lEquals && BabyID.equals(lTest.BabyID);
            if(name == null)
                lEquals = lEquals && lTest.name == null;
            else
                lEquals = lEquals && name.equals(lTest.name);
            if(sex == null)
                lEquals = lEquals && lTest.sex == null;
            //else
            //	sex = lEquals && sex.equals(lTest.sex);
         
            return lEquals;
        } else
        {
            return false;
        }
    }

    public int hashCode()
    {
        int result = 17;
        result = 37 * result + (BabyID == null ? 0 : BabyID.hashCode());
        result = 37 * result + (name == null ? 0 : name.hashCode());
        result = 37 * result + (sex == null ? 0 : sex.hashCode());
        result = 37 * result + (Birth == null ? 0 : Birth.hashCode());

        return result;
    }

	protected Integer BabyID;
    protected String name;
    protected Integer sex;
    protected String Birth;
    
}
